package request

type CreateOrdersReq struct {
	UsersId uint32  `json:"users_id" form:"users_id" binding:"required"`
	GoodsId uint32  `json:"goods_id" form:"goods_id" binding:"required"`
	OrderSn string  `json:"order_sn" form:"order_sn"`
	Num     uint32  `json:"num" form:"num" binding:"required"`
	Price   float64 `json:"price" form:"price" binding:"required"`
}
type QueryOrdersReq struct {
	UsersId uint32 `json:"users_id" form:"users_id" binding:"required"`
	GoodsId uint32 `json:"goods_id" form:"goods_id" binding:"required"`
}
type UpdateOrderReq struct {
	Id      uint32 `json:"id" form:"id" binding:"required"`
	UsersId uint32 `json:"users_id" form:"users_id" binding:"required"`
	GoodsId uint32 `json:"goods_id" form:"goods_id" binding:"required"`
	Status  string `json:"status" form:"status" binding:"required"`
}
type DeleteOrderReq struct {
	Id      uint32 `json:"id" form:"id" binding:"required"`
	UsersId uint32 `json:"users_id" form:"users_id" binding:"required"`
	GoodsId uint32 `json:"goods_id" form:"goods_id" binding:"required"`
}
